package br.com.assemble.hermeserp.model.pojos.controle;

import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import br.com.assemble.hermeserp.ejb.annotation.DaoClass;


/**
 * The persistent class for the LOG_ACESSOS database table.
 * 
 */
@Entity
@Table(name="LOG_ACESSOS")
@DaoClass(value="LogAcessoDao", pu="hermes-pu")
public class LogAcesso implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="LAC_IDENTIFY", unique=true, nullable=false)
	private BigInteger lacIdentify;

	@Column(name="LAC_ACAO", nullable=false, length=1)
	private Integer lacAcao;

	@Column(name="LAC_DATA", nullable=false)
	private Timestamp lacData;

	@Column(name="LAC_DESCRICAO", length=100)
	private String lacDescricao;

	//bi-directional many-to-one association to Usuario
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="USU_IDENTIFY", nullable=false)
	private Usuario usuario;

    public LogAcesso() {
    }

	public BigInteger getLacIdentify() {
		return this.lacIdentify;
	}

	public void setLacIdentify(BigInteger lacIdentify) {
		this.lacIdentify = lacIdentify;
	}

	public Integer getLacAcao() {
		return this.lacAcao;
	}

	public void setLacAcao(Integer lacAcao) {
		this.lacAcao = lacAcao;
	}

	public Timestamp getLacData() {
		return this.lacData;
	}

	public void setLacData(Timestamp lacData) {
		this.lacData = lacData;
	}

	public String getLacDescricao() {
		return this.lacDescricao;
	}

	public void setLacDescricao(String lacDescricao) {
		this.lacDescricao = lacDescricao;
	}

	public Usuario getUsuario() {
		return this.usuario;
	}

	public void setUsuario(Usuario usuario) {
		this.usuario = usuario;
	}
	
}